package sg.simple.snmp.provider;

import sg.simple.snmp.provider.impl.MockSimpleSNMPQueriesImpl;
import sg.simple.snmp.provider.impl.SimpleSNMPQueriesImpl;

public class SimpleSNMPQueriesFactory {

	public static SimpleSNMPQueriesFactory factory = new SimpleSNMPQueriesFactory();

	private SimpleSNMPQueriesFactory() {

	}

	public static SimpleSNMPQueriesFactory instance() {
		return factory;
	}

	public SimpleSNMPQueries create(boolean isTest) {

		SimpleSNMPQueries simpleSNMPQueries;
		if (isTest) {
			simpleSNMPQueries = new MockSimpleSNMPQueriesImpl();
		} else {
			simpleSNMPQueries = new SimpleSNMPQueriesImpl();
		}

		return simpleSNMPQueries;
	}

}
